package com.example.project.service;

import com.example.project.entity.GoodsBean;
import com.example.utils.resultFormat.Result;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

@Service
public interface ExcelService {

    /**
     * 导出报表板模
     */
    void exportExcelTemplate(HttpServletRequest request, HttpServletResponse response);

    /**
     * 读取excel中的数据,生成list
     */
    Result readExcelFile(MultipartFile file);

    /**
     * 导出报表
     */
    void exportExcel(HttpServletRequest request, HttpServletResponse response);

    List<GoodsBean> getExcelInfo();

    boolean saveBatch(List<GoodsBean> list);
}
